Automattic\Jetpack\Search\Helper D

Total Complexity 145
Dependencies 5
Dependents 10
Total lines 921
Lines of code 476
Logical lines of code 258
Comment lines 337
Methods 34
Properties 0

Methods 34

Method Rating Maintainability Complexity Lines of code
get_widget_tracks_value()
B
39 21 65
generate_initial_javascript_state()
B
33 19 93
generate_widget_filter_name()
A
45 11 44
get_filters_from_widgets()
A
50 10 26
ensure_post_types_on_remove_url()
A
50 9 29
get_filter_properties_for_tracks()
S
55 5 20
get_widget_properties_for_tracks()
S
56 5 17
get_date_filter_type_name()
S
58 5 16
remove_active_from_post_type_buckets()
S
60 5 12
post_types_differ_query()
S
58 4 15
get_active_post_types()
S
64 4 9
get_active_plugins()
S
62 3 11
get_search_url()
S
62 3 11
get_wpcom_site_id()
S
70 3 6
array_diff()
S
66 3 8
should_rerun_search_in_customizer_preview()
S
77 3 3
add_query_arg()
S
67 3 7
get_widgets_from_option()
S
67 3 7
get_asset_version()
S
72 3 5
add_post_types_to_url()
S
62 2 12
remove_query_arg()
S
74 2 4
print_instant_search_sidebar()
S
68 2 9
sanitize_checkbox_value()
S
78 2 3
post_types_differ_searchable()
S
66 2 8
is_valid_locale()
S
70 2 6
get_max_posts_per_page()
S
79 2 3
get_max_offset()
S
79 2 3
generate_post_type_customizer_id()
S
79 1 3
generate_post_type_customizer_ids()
S
70 1 6
are_filters_by_widget_disabled()
S
79 1 3
sanitize_checkbox_value_for_js()
S
80 1 3
get_widget_option_name()
S
79 1 3
build_widget_id()
S
78 1 3
is_active_widget()
S
78 1 3